import request from '@/utils/request'

export function applyResetpassword(data) {
  return request({
    url: '/message/apply/resetpassword',
    method: 'get',
    params: data
  }).then(res => {
    return res
  })
}

export function messagePage(data) {
  return request({
    url: '/message/page',
    method: 'post',
    data
  }).then(res => {
    return res
  })
}

export function messagePage2(data) {
  return request({
    url: '/message/page2',
    method: 'post',
    data
  }).then(res => {
    return res
  })
}
export function handler(data) {
  return request({
    url: '/message/handler',
    method: 'get',
    params: data
  }).then(res => {
    return res
  })
}

export function askMac(data) {
  return request({
    url: '/user/ask/mac',
    method: 'get',
    params: data
  }).then(res => {
    return res
  })
}

export function bindMac(data) {
  return request({
    url: '/user/bind/mac',
    method: 'get',
    params: data
  }).then(res => {
    return res
  })
}
